package com.android.slidingdraweractivity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.SlidingDrawer;

public class SlidingDrawerActivity extends Activity {
	
    private static final String TAG = "SlideShow";	
	
	private SlidingDrawer mDialerDrawer;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        mDialerDrawer = (SlidingDrawer) findViewById(R.id.slidingdrawer);
        
        mDialerDrawer.setOnDrawerScrollListener(
        		new SlidingDrawer.OnDrawerScrollListener(){
        			public void onScrollStarted() { 
        				Log.d (TAG, "This is onScrollStarted.");
        			}
        			public void onScrollEnded() { 
        				Log.d (TAG, "This is onScrollEnded.");

        			}        			
        			}
        		);
        
        mDialerDrawer.setOnDrawerOpenListener(
        		new SlidingDrawer.OnDrawerOpenListener() {
        			public void onDrawerOpened() { }
        			
        		});
        
        mDialerDrawer.setOnDrawerCloseListener(
        		new SlidingDrawer.OnDrawerCloseListener() {
        			public void onDrawerClosed() { }
        		});
    }
}